import request from '@/utils/request'
import delRequest from '@/utils/deleteRequest'

// 工艺人员添加指导文件：包括PDF文档与视频的url地址
export function addTechnologyFile(params) {
  return request({
    url: '/back/technologyFile/addTechnologyFile',
    method: 'POST',
    params
  })
}

// 检查产品编号是否存在
export function checkTechnology(params) {
  return request({
    url: '/back/technologyFile/checkTechnology',
    method: 'POST',
    params
  })
}

// 获取工艺-指导文件的列表
export function technologyFilePage(params) {
  return request({
    url: '/back/technologyFile/technologyFilePage',
    method: 'POST',
    params
  })
}

// 工艺人员后台删除工艺指导文件
export function delTechnologyFile(params) {
  return request({
    url: '/back/technologyFile/delTechnologyFile',
    method: 'POST',
    params
  })
}

// 工艺人员添加指导文件：包括PDF文档与视频的url地址
export function deleteFiles(data) {
  return delRequest({
    url: 'http://192.168.3.11:8086/delFile',
    method: 'POST',
    data
  })
}
